package com.soft.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.soft.entity.Purchase;
import com.soft.service.PurchaseService;

@RestController
@RequestMapping("/purchase")
public class PurchaseController {
    @Autowired
    private PurchaseService purchsaeService;
    @RequestMapping("/queryByUserName")
    public List<Purchase> queryByUserNamePurchaseTotle(String userName){
    	return purchsaeService.queryByUserNamePurchaseTotle(userName);
    }
}
